package apps.qq.action;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.interceptor.ServletRequestAware;
import org.apache.struts2.interceptor.ServletResponseAware;

import com.opensymphony.xwork2.ActionSupport;

/**
 * 
 * @创建作者：hiyoucai@126.com
 * @创建时间：2011-6-17 下午04:54:11
 * @文件描述：具体绑定业务动作
 */
@Namespace("/qq")
public class WelcomeAction extends ActionSupport implements ServletRequestAware, ServletResponseAware{
	
	private static final long serialVersionUID = -3528657332607901768L;
	private HttpServletRequest request;
	private HttpServletResponse response;
	String connectSession = "";
	
	@Action("welcome")
	public String execute() throws Exception{	
		//这里可以对connectSession进行验证，是否是合法的请求。
		return SUCCESS;			
	}
	
	
	public void setServletRequest(HttpServletRequest request) {
		this.request = request;
	}

	public void setServletResponse(HttpServletResponse response) {
		this.response = response;
	}


	public String getConnectSession() {
		return connectSession;
	}


	public void setConnectSession(String connectSession) {
		this.connectSession = connectSession;
	}
}
